STEP 9: Let's pass the variable kitty into the function! Remember, kitty holds the weight of a kitten on Earth.

  • Go to and drag another Return Variable to the bottom of your program.
  • Change the return variable name from my_var to kitty_moon_weight.
  • Change the function name from my_function to get_moon_weight.
  • Add kitty as an argument in the function call. Hint: Put it in the empty parentheses.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)